package org.fuys.coder.domain.auth.model.res;

/**
 * @projectName: fuys-low-coder
 * @package: org.fuys.coder.domain.auth.model.vo
 * @className: CodeFailedEnum
 * @author: WangJing
 * @description: 验证码失败
 * @date: 2024/6/18 22:09
 * @version: 1.0
 */
public enum AuthFailedEnum {
    PASSWORD_MISMATCH(1){
        @Override
        public String getMsg() {
            return "密码不匹配";
        }
    },
    EMAIL_MISMATCH(2){
        @Override
        public String getMsg() {
            return "邮箱不匹配";
        }
    },
    CAPTCHA_MISMATCH(3){
        @Override
        public String getMsg() {
            return "验证码不匹配";
        }
    },
    EMAIL_NOT_EXIST(4){
        @Override
        public String getMsg() {
            return "邮箱不存在";
        }
    },
    EMAIL_EXIST(5){
        @Override
        public String getMsg() {
            return "邮箱已存在";
        }
    },
    EMAIL_CODE_MISMATCH(6){
        @Override
        public String getMsg() {
            return "邮箱验证码不匹配";
        }
    },
    EMAIL_CODE_EXPIRED(7){
        @Override
        public String getMsg() {
            return "邮箱验证码已过期";
        }
    },
    CAPTCHA_EXPIRED(8){
        @Override
        public String getMsg() {
            return "验证码已过期";
        }
    },
    LOGIN_PASSWORD_MISMATCH(9){
        @Override
        public String getMsg() {
            return "登录密码不匹配";
        }
    },
    LOGIN_EMAIL_NOT_EXIST(10){
        @Override
        public String getMsg() {
            return "登录邮箱不存在";
        }
    },
    LOGIN_USER_FREEZE(11){
        @Override
        public String getMsg() {return "您的账号被封禁中 暂不可登录!";}
    }
    ;
    AuthFailedEnum(int index){
        this.index=index;
        this.msg="唔嗯...... 出现这个提示还真是稀有 您可以刷新一下再试试？";
    }
    public String getMsg(){
        return this.msg;
    }
    public int getIndex(){
        return this.index;
    }
    public static AuthFailedEnum getByIdx(int index){
        return AuthFailedEnum.values()[index-1];
    }
    private int index;
    private String msg;
}
